xenconsoled: Remove unexpected daemonize behavior
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Mon, 2 Nov 2015 11:17:38 +0000 (11:17 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 4 Nov 2015 15:11:00 +0000 (15:11 +0000)
commit26d4eebee81e5537dc2a04b57968ff3afe35e446
tree06b8d022feeefb8709c444a9104a0f4de28f89aa
parent6ae323094390eb849daa342c869a2958b8e31d3c
xenconsoled: Remove unexpected daemonize behavior

Previously, xenconsoled's daemonize function would do nothing if its
parent process is init (as it is under systemd but not sysv init).
This is confusing. Instead, always daemonize when asked to, but use the
"interactive" switch when running from the systemd service.

Because a pidfile is only written when daemonizing, drop the pidfile
parameters from the service file (systemd keeps track of the pids
anyway).

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/console/daemon/utils.c
tools/hotplug/Linux/systemd/xenconsoled.service.in